package com.example.health_life.service;

import com.example.health_life.dao.MyFavorite;

import java.util.List;

public interface MyFavoriteService {
    List<MyFavorite> getMyfavoriteList(Integer satstus);

    MyFavorite getMyfavoriteById(Integer id);

    List<MyFavorite> getMyfavoriteByUserId(Integer userId, Integer status);

    List<MyFavorite> getMyfavoriteByTypeId(Byte type,Integer status);

    Integer deleteMyfavorite(Integer id);

    Integer addMyfavorite(MyFavorite myfavorite);

    Integer increaseFavoriteCount(Integer articleId);

    Integer decreaseFavoriteCount(Integer articleId);

    Integer increaseFavoriteCountForNews(Integer newsId);

    Integer decreaseFavoriteCountForNews(Integer newsId);
}
